Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finalize constexpr ppu_decoder<> #7850

Merged
merged 3 commits into from
Mar 25, 2020
Merged

Finalize constexpr ppu_decoder<> #7850

merged 3 commits into from
Mar 25, 2020

Conversation

Nekotekina
Copy link
Member

No description provided.

{
const u64 addr = op.ra ? ppu.gpr[op.ra] + ppu.gpr[op.rb] : ppu.gpr[op.rb];
sse_cellbe_stvlx(addr, ppu.vr[op.vs].vi);
s_use_ssse3 ? sse_cellbe_stvlx(addr, ppu.vr[op.vs].vi) : sse_cellbe_stvlx_v0(addr, ppu.vr[op.vs].vi);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
s_use_ssse3 ? sse_cellbe_stvlx(addr, ppu.vr[op.vs].vi) : sse_cellbe_stvlx_v0(addr, ppu.vr[op.vs].vi);
(s_use_ssse3 ? sse_cellbe_stvlx : sse_cellbe_stvlx_v0)(addr, ppu.vr[op.vs].vi);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider this style here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have bad experience with this, when only function pointer is selected like this. I checked generated code for current version in MSVC, it does common expression elimination anyway.

Move SSSE3 checks to runtime in PPUInterpreter.cpp
It was doing nothing outside of MSVC. Still seems doing nothing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants